#include <boost/algorithm/string.hpp>
#include <locale>
#include <iostream>
#include <vector>

int main()
{
	std::string s = "David Hilbert";
	std::vector<std::string> v;
	boost::algorithm::split(v,s,boost::algorithm::is_space());
	std::cout << v.size() << std::endl;
	for (std::vector<std::string>::const_iterator it=v.begin();it!=v.end();++it)
		std::cout << *it << std::endl;
}